<?php

namespace Endor\EndorBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class EntradasType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('Proveedor', 'entity', array('class' => 'EndorBundle:Proveedores', 'property' => 'nombre', 'required' => false))
            ->add('Bodega', 'entity', array('class' => 'EndorBundle:Bodegas', 'property' => 'nombre'))
            ->add('Articulo')    
            ->add('cantidad')
            //->add('ItemCompra', 'entity', array('class' => 'EndorBundle:ItemsCompras', 'property' => 'valor'))
        ;
    }

    public function getName()
    {
        return 'endor_endorbundle_entradastype';
    }
}
